package j07;

/*
常量
    字面量 3 3.14 true
    类似变量，有名字，值不可变，有一次赋值机会

 */
class Bird{
//    final int age;
    final int age=9;
}
public class J2shuxing {
    public static void main(String[] args) {

        Bird b1 = new Bird();
        System.out.println("b1.age = " + b1.age);
//        b1.age = 99;


//        double pi = 3.14;
//       final double pi = 3.14;
//        pi = 66;

        final int xyz;
        xyz = 7;
//        xyz = 8;

        final int XYZ;
    }
}
